#!/bin/bash
if [ "$1" == "" ];then
	echo "usage: newkey.sh name"
	exit 1
fi
openssl req -newkey rsa:2048 -nodes -keyout $1.key -x509 -days 3650 -out $1.crt
